/**
* Author: Samfu
* Time  : 上午1:47:28
* Desc  : 
*/
package com.fu.moneybag.dao;

import java.util.List;

<<<<<<< HEAD
import org.apache.ibatis.annotations.Param;

=======
>>>>>>> e0880f57468c829d7f55dfe5963927c05e7bee9a
import com.fu.moneybag.entity.Article;

public interface ArticleDao {
	
	public int addArticle(Article article);
	
	public List<Article> getAllArticles(long userId);
	
	public Article getArticleByArticleId(long articleId);
	
	public int deleteArticleById(long articleId, long userId);
	
	public int updateArticleById(String articleTitle, String articleType, String articleContent, long articleId, long userId);
	
	public List<Article> getArticleByType(String articleType);
	
<<<<<<< HEAD
	public List<Article> getArticleByPage(@Param(value="startPos") Integer startPos,
			@Param(value="pageSize") Integer pageSize, @Param(value="userId") long userId);
	
	public List<Article> getArticleByPageAndType(@Param(value="startPos") Integer startPos,
			@Param(value="pageSize") Integer pageSize, @Param(value="userId") long userId,
			@Param(value="articleType") String articleType);
	
=======
>>>>>>> e0880f57468c829d7f55dfe5963927c05e7bee9a
}
